\hypertarget{mypushbuttoncopy_8h_source}{}\doxysection{mypushbuttoncopy.\+h}
\mbox{\hyperlink{mypushbuttoncopy_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{comment}{//\#ifndef MYPUSHBUTTONCOPY\_H}}
\DoxyCodeLine{2 \textcolor{comment}{//\#define MYPUSHBUTTONCOPY\_H}}
\DoxyCodeLine{3 }
\DoxyCodeLine{4 \textcolor{comment}{//\#include <QWidget>}}
\DoxyCodeLine{5 \textcolor{comment}{//\#include <QPushButton>}}
\DoxyCodeLine{6 \textcolor{comment}{//\#include <QPainter>}}
\DoxyCodeLine{7 \textcolor{comment}{//\#include <QMouseEvent>}}
\DoxyCodeLine{8 \textcolor{comment}{//\#include <QApplication>}}
\DoxyCodeLine{9 }
\DoxyCodeLine{10 \textcolor{comment}{//\#include "{}xnamespace.h"{}}}
\DoxyCodeLine{11 }
\DoxyCodeLine{12 \textcolor{comment}{//QT\_BEGIN\_NAMESPACE}}
\DoxyCodeLine{13 }
\DoxyCodeLine{14 \textcolor{comment}{//class MyPushButtonCopyPrivate;}}
\DoxyCodeLine{15 \textcolor{comment}{//class MyPushButtonCopy : public QPushButton}}
\DoxyCodeLine{16 \textcolor{comment}{//\{}}
\DoxyCodeLine{17 \textcolor{comment}{//    Q\_OBJECT}}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{comment}{//    Q\_PROPERTY(int imageLayerIndex READ getImageLayerIndex WRITE setImageLayerIndex)}}
\DoxyCodeLine{20 }
\DoxyCodeLine{21 \textcolor{comment}{//    Q\_PROPERTY(int sourceDeviceIndex READ getSourceDeviceIndex WRITE setSourceDeviceIndex)}}
\DoxyCodeLine{22 \textcolor{comment}{//    Q\_PROPERTY(int destinationDeviceIndex READ getDestinationDeviceIndex WRITE setDestinationDeviceIndex)}}
\DoxyCodeLine{23 }
\DoxyCodeLine{24 \textcolor{comment}{//    Q\_PROPERTY(My::ObjectType objectType READ getObjectType WRITE setObjectType)}}
\DoxyCodeLine{25 \textcolor{comment}{//    Q\_PROPERTY(int sourceObjectIndex READ getSourceObjectIndex WRITE setSourceObjectIndex)}}
\DoxyCodeLine{26 \textcolor{comment}{//    Q\_PROPERTY(int destinationObjectIndex READ getDestinationObjectIndex WRITE setDestinationObjectIndex)}}
\DoxyCodeLine{27 \textcolor{comment}{//    Q\_PROPERTY(My::ValueType sourceValueType READ getSourceValueType WRITE setSourceValueType)}}
\DoxyCodeLine{28 \textcolor{comment}{//    Q\_PROPERTY(My::ValueType destinationValueType READ getDestinationValueType WRITE setDestinationValueType)}}
\DoxyCodeLine{29 }
\DoxyCodeLine{30 \textcolor{comment}{//    Q\_PROPERTY(bool displayEnable READ getDisplayEnable WRITE setDisplayEnable)}}
\DoxyCodeLine{31 \textcolor{comment}{//    Q\_PROPERTY(bool displayDefault READ getDisplayDefault WRITE setDisplayDefault)}}
\DoxyCodeLine{32 }
\DoxyCodeLine{33 \textcolor{comment}{//    Q\_PROPERTY(My::PushButtonCopyOperate pushButtonCopyOperate READ getPushButtonCopyOperate WRITE setPushButtonCopyOperate)}}
\DoxyCodeLine{34 \textcolor{comment}{//    Q\_PROPERTY(int coilOfRegisterIndex READ getCoilOfRegisterIndex WRITE setCoilOfRegisterIndex)}}
\DoxyCodeLine{35 \textcolor{comment}{//    Q\_PROPERTY(int registerNum READ getRegisterNum WRITE setRegisterNum)}}
\DoxyCodeLine{36 }
\DoxyCodeLine{37 \textcolor{comment}{//public:}}
\DoxyCodeLine{38 \textcolor{comment}{//    explicit MyPushButtonCopy(QWidget *parent = nullptr);}}
\DoxyCodeLine{39 \textcolor{comment}{//    \string~MyPushButtonCopy();}}
\DoxyCodeLine{40 }
\DoxyCodeLine{41 \textcolor{comment}{//    /* Property Interface */}}
\DoxyCodeLine{42 \textcolor{comment}{//    int getImageLayerIndex() const;}}
\DoxyCodeLine{43 \textcolor{comment}{//    void setImageLayerIndex(int imageLayerInd);}}
\DoxyCodeLine{44 }
\DoxyCodeLine{45 \textcolor{comment}{//    int getSourceDeviceIndex() const;}}
\DoxyCodeLine{46 \textcolor{comment}{//    void setSourceDeviceIndex(int deviceInd);}}
\DoxyCodeLine{47 }
\DoxyCodeLine{48 \textcolor{comment}{//    int getDestinationDeviceIndex() const;}}
\DoxyCodeLine{49 \textcolor{comment}{//    void setDestinationDeviceIndex(int deviceInd);}}
\DoxyCodeLine{50 }
\DoxyCodeLine{51 \textcolor{comment}{//    My::ObjectType getObjectType() const;}}
\DoxyCodeLine{52 \textcolor{comment}{//    void setObjectType(My::ObjectType);}}
\DoxyCodeLine{53 }
\DoxyCodeLine{54 \textcolor{comment}{//    int getSourceObjectIndex() const;}}
\DoxyCodeLine{55 \textcolor{comment}{//    void setSourceObjectIndex(int);}}
\DoxyCodeLine{56 }
\DoxyCodeLine{57 \textcolor{comment}{//    int getDestinationObjectIndex() const;}}
\DoxyCodeLine{58 \textcolor{comment}{//    void setDestinationObjectIndex(int);}}
\DoxyCodeLine{59 }
\DoxyCodeLine{60 \textcolor{comment}{//    My::ValueType getSourceValueType() const;}}
\DoxyCodeLine{61 \textcolor{comment}{//    void setSourceValueType(My::ValueType);}}
\DoxyCodeLine{62 }
\DoxyCodeLine{63 \textcolor{comment}{//    My::ValueType getDestinationValueType() const;}}
\DoxyCodeLine{64 \textcolor{comment}{//    void setDestinationValueType(My::ValueType);}}
\DoxyCodeLine{65 }
\DoxyCodeLine{66 \textcolor{comment}{//    bool getDisplayEnable() const;}}
\DoxyCodeLine{67 \textcolor{comment}{//    void setDisplayEnable(bool);}}
\DoxyCodeLine{68 }
\DoxyCodeLine{69 \textcolor{comment}{//    bool getDisplayDefault() const;}}
\DoxyCodeLine{70 \textcolor{comment}{//    void setDisplayDefault(bool);}}
\DoxyCodeLine{71 }
\DoxyCodeLine{72 \textcolor{comment}{//    My::PushButtonCopyOperate getPushButtonCopyOperate() const;}}
\DoxyCodeLine{73 \textcolor{comment}{//    void setPushButtonCopyOperate(My::PushButtonCopyOperate);}}
\DoxyCodeLine{74 }
\DoxyCodeLine{75 \textcolor{comment}{//    int getCoilOfRegisterIndex() const;}}
\DoxyCodeLine{76 \textcolor{comment}{//    void setCoilOfRegisterIndex(int);}}
\DoxyCodeLine{77 }
\DoxyCodeLine{78 \textcolor{comment}{//    int getRegisterNum() const;}}
\DoxyCodeLine{79 \textcolor{comment}{//    void setRegisterNum(int);}}
\DoxyCodeLine{80 }
\DoxyCodeLine{81 \textcolor{comment}{//protected:}}
\DoxyCodeLine{82 \textcolor{comment}{//    void paintEvent(QPaintEvent *ev) override;}}
\DoxyCodeLine{83 }
\DoxyCodeLine{84 \textcolor{comment}{//    void enterEvent(QEvent *ev) override;}}
\DoxyCodeLine{85 \textcolor{comment}{//    void leaveEvent(QEvent *ev) override;}}
\DoxyCodeLine{86 \textcolor{comment}{//    void mousePressEvent(QMouseEvent *ev) override;}}
\DoxyCodeLine{87 \textcolor{comment}{//    void mouseReleaseEvent(QMouseEvent *ev) override;}}
\DoxyCodeLine{88 \textcolor{comment}{//    void mouseMoveEvent(QMouseEvent *ev) override;}}
\DoxyCodeLine{89 }
\DoxyCodeLine{90 \textcolor{comment}{//private:}}
\DoxyCodeLine{91 \textcolor{comment}{//    Q\_DISABLE\_COPY(MyPushButtonCopy)}}
\DoxyCodeLine{92 \textcolor{comment}{//    MyPushButtonCopyPrivate *d;}}
\DoxyCodeLine{93 }
\DoxyCodeLine{94 \textcolor{comment}{//\};}}
\DoxyCodeLine{95 }
\DoxyCodeLine{96 \textcolor{comment}{//QT\_END\_NAMESPACE}}
\DoxyCodeLine{97 }
\DoxyCodeLine{98 \textcolor{comment}{//\#endif // MYPUSHBUTTONCOPY\_H}}

\end{DoxyCode}
